.results {
  flex: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: auto;

  .area{
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    background-color: rgba(23, 22, 26, 1);
    overflow: auto;
    border-radius: 4px;
    display: flex;
    padding: 8px;
    gap: 8px;
    flex: 1;
    .tabs{
      display: flex;
      width: 100%;
      gap: 23px;
      color: rgba(255, 255, 255, 0.5);
      .noActive{
        line-height: 20px;
        padding-bottom: 10px;
        cursor: var(--pointer);
      }
      .isActive{
        line-height: 20px;
        padding-bottom: 10px;
        cursor: var(--pointer);
        border-bottom: 2px #fff solid;
      }
    }
    .layerItem{
      overflow: auto;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      width: 100%;
      height: 100%;
      align-content: flex-start;
    }
    .uploadSection{
      width: 100%;
      height: 100%;
      cursor: var(--pointer);
      overflow: hidden;
      flex: 1;
      background: rgba(100, 100, 100, 0.1);
      background-image: 
      /* 顶部 */
      linear-gradient(to right, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
      /* 右侧 */
      linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
      /* 底部 */
      linear-gradient(to left, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
      /* 左侧 */
      linear-gradient(to top, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 50%);
      background-size: 
        10px 1px,   /* 顶部虚线 */
        1px 10px,   /* 右侧虚线 */
        10px 1px,   /* 底部虚线 */
        1px 10px;   /* 左侧虚线 */
          
      background-position: 
        top left,    /* 顶部位置 */
        top right,   /* 右侧位置 */
        bottom left, /* 底部位置 */
        top left;    /* 左侧位置 */
          
      background-repeat: 
        repeat-x, /* 顶部重复 */
        repeat-y, /* 右侧重复 */
        repeat-x, /* 底部重复 */
        repeat-y; /* 左侧重复 */
        
      border-radius: 4px;
      .uploadPlaceholder{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        .uploadIcon{
          width: 18px;
          height: 18px;
          margin-bottom: 3px;
        }
        .uploadText{
          color: rgba(255, 255, 255, 0.5);
          font-size: 12px;
          line-height: 17px;
          cursor: default;
          span{
            color: rgba(249, 251, 252, 1);
            cursor: var(--pointer);
          }
        }
      }
      .uploadingState {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        .uploadText {
          color: rgba(255, 255, 255, 0.8);
          font-size: 12px;
          line-height: 17px;
        }
      }
      .progressBar {
        width: 100%;
        height: 4px;
        background: rgba(50, 109, 255, 1);
        border-radius: 2px;
        transition: width 0.3s ease;
      }
    }
    // Upload组件样式优化
    .uploadMultiSize {
      width: 100%;
      height: 100%;
      max-width: 145px;
      max-height: 118px;
    }
    .uploadLayerSize {
      min-width: 145px;
      min-height: 80px;
      max-width: 145px;
      max-height: 80px;

    }
    .uploadFullSize {
      max-width: 100%;
      max-height: 100%;
    }
    .img{
      cursor: var(--pointer);
      width: 20px;
      height: 20px;
    }
  }

  .resultsItem {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    .resultsHead {
      display: flex;
      align-items: center;
      justify-content: space-between;

      .resultsHeadLeft {
        display: flex;
        align-items: center;
        gap: 19px;

        .resultsHeadTitle {
          line-height: 21px;
          font-size: 20px;
          font-weight: 600;
        }

        .separate {
          width: 1px;
          height: 21px;
          background: rgba(255, 255, 255, 0.2);
        }

        .resultsHeadText {
          display: flex;
          color: rgba(255, 255, 255, 0.8);
          gap: 12px;
          .tabText{
            padding: 4px 10px;
            background: rgba(100, 100, 100, 0.2);
            border-radius: 4px;
          }
          .thumbnail{
            padding: 2px;
            background: rgb(41, 42, 44);
            border-radius: 4px;
            display: flex;
            gap: 4px;
            width: 81px;
            height: 28px;
            align-items: center;
            .img{
              width: 24px;
              height: 24px;
            }
            span{
              line-height: 20px;
            }
          }
        }
      }

      .resultsHeadTime {
        color: rgba(255, 255, 255, 0.6);
      }
    }

    .resultsContent {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.8);
      line-height: 22px;

      .img {
        width: 16px;
        height: 16px;
        line-height: 0;
      }
    }

    .resultsImgList {
      display: flex;
      flex-wrap: wrap;
      gap: 32px;

      .resultsImgItem {
        width: 236px;
        aspect-ratio: 1;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        cursor: var(--pointer);

        &:hover {
          .maskLayer {
            display: block;
          }
        }

        .maskLayer {
          display: none;
          position: absolute;
          width: 100%;
          height: 100%;
          z-index: 10;
          background: rgba(0, 0, 0, 0.5);

          .maskTool {
            width: 56px;
            height: 28px;
            display: flex;
            gap: 8px;
            font-size: 0;
            position: absolute;
            right: 8px;
            top: 8px;

            .maskLayerImg {
              width: 16px;
              height: 16px;
              cursor: var(--pointer);
            }
          }

          .maskEdit {
            display: flex;
            align-items: center;
            background: rgba(0, 0, 0, 0.5);
            width: 192px;
            height: 32px;
            justify-content: center;
            gap: 4px;
            font-size: 12px;
            position: absolute;
            bottom: 8px;
            left: 22px;
            border-radius: 4px;

            .maskleft {
              display: flex;
              align-items: center;
              width: 90px;
              height: 28px;
              justify-content: center;
              line-height: 20px;
              gap: 4px;
              padding: 0 12px;
              cursor: var(--pointer);
            }

            .maskSeparate {
              width: 1px;
              height: 14px;
              background: rgba(255, 255, 255, 0.2);
            }

            .maskRight {
              display: flex;
              align-items: center;
              width: 90px;
              height: 28px;
              justify-content: center;
              line-height: 20px;
              gap: 4px;
              padding: 0 12px;
              cursor: var(--pointer);
            }

            .maskLayerImg {
              width: 12px;
              height: 12px;
              font-size: 0;
            }
          }
        }

        .img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
  .resultsSingle{
    width: 100%;
    height: 100%;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    .img {
      width: 100%;
      height: 100%;
      img{
        object-fit: contain;
      }
    }
    .video {
      width: 100%;
      height: 100%;
      object-fit: contain;
      position: relative;
      z-index: 15;
      pointer-events: auto;
      
      &::-webkit-media-controls {
        z-index: 20;
        pointer-events: auto;
      }
      
      &::-webkit-media-controls-panel {
        z-index: 20;
        pointer-events: auto;
      }
    }
  }
}